package com.tb.boxman;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;

/**
 * Created by 汪贵春 on 2016/7/11.
 */
public class GameWin {

    private Bitmap successImage;

    public GameWin(){
        successImage = BitmapFactory.decodeResource(MainActivity.main.getResources(), R.drawable.success);


    }


    public void draw(Canvas canvas, Paint paint){
        RectF dst = new RectF(0, 0, GameView.screenW, GameView.screenH);
        canvas.drawBitmap(successImage, null, dst, paint);

    }

    public void onBackKeyUp(){
        GameView.gameState = GameView.GAME_MENU;
        GameView.main.invalidate();
    }



}
